﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Company.Hardware
{
    /// <summary>
    /// 海康威视车牌识别网络摄像头
    /// </summary>
    public interface ICamera
    {
        event Action<string> MessageChanged;
        event Action<string> ValueChanged;

        bool Initialized { get; set; }

        bool Connected { get; set; }

        string Message { get; set; }

        string Value { get; set; }

        bool Init(string ip, int port, string user, string password, IntPtr intPtr);

        bool Open();

        bool Close();

        void Trigger(string carName);
    }
}
